package com.oa.service.impl;

import com.oa.mappers.CardReplacementMapper;
import com.oa.po.Tbl_card_replacement;
import com.oa.service.CardReplacementSrevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CardReplacementSreviceImpl implements CardReplacementSrevice {
    @Autowired
    CardReplacementMapper cardReplacementMapper;
    @Override
    public int addCard(Tbl_card_replacement tbl_card_replacement) {
        try{
            cardReplacementMapper.addCard();
            return 1;
        }catch (Exception ex){

        }
        return 0;
    }

    @Override
    public List<Tbl_card_replacement> findByUsername(String s) {
        return cardReplacementMapper.findByUsername(s);
    }
}
